Andrew Morrow: The attached patch updates the initialization of the 'struct tm' in __time_get_storage<char> to match the initialization behavior in __time_get_storage<wchar>. Without the initialization, valgrind reports errors in the subsequent calls to strftime_l. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@161196 91177308-0d34-0410-b5e6-96231b3b80d8 
diff --git a/src/locale.cpp b/src/locale.cpp index 854fd23..542c0d7 100644 --- a/src/locale.cpp +++ b/src/locale.cpp 
@@ -4864,7 +4864,7 @@  void  __time_get_storage<char>::init(const ctype<char>& ct)  { - tm t; + tm t = {0};  char buf[100];  // __weeks_  for (int i = 0; i < 7; ++i)